package Type;

import java.lang.*;

public class Test1 {
    public static void main(String[] args) {

        int a = 10;
        Integer i1 = a;//自动装箱
        Integer i2 = Integer.valueOf(a);//自动拆箱

        System.out.println(i1);
        System.out.println(i2);

//        Integer i = new Integer(10);//在jdk9中已删除
//        System.out.println(i);

        Integer i = 10;
        int b = i.intValue();
        int c = i;

        System.out.println(b);
        System.out.println(c);

    }
}

